<?php
defined('_JEXEC') or die;
$doc = JFactory::getDocument();
$home = new JLayoutFile('joomla.viseed.home');
$app = JFactory::getApplication();
$menu = $app->getMenu();

// Check if it is home page
$isHome = FALSE;
if ($menu->getActive() == $menu->getDefault()) {
    $isHome = TRUE;
}
include_once JPATH_THEMES . '/' . $this->template . '/logic.php'; // load logic.php
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/html/css/screen.css'?>" type="text/css" rel="stylesheet" />
        <link href="<?php echo $this->baseurl . '/templates/' . $this->template . '/html/css/custom.css'?>" type="text/css" rel="stylesheet" media="screen" />
        <link rel="stylesheet" href="<?php echo $this->baseurl . '/templates/' . $this->template . '/html/css/fractionslider.css'?>" />
        <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseurl . '/templates/' . $this->template . '/html/js/jquery.preloader.js'?>"></script>
        <script type="text/javascript" src="<?php echo $this->baseurl . '/templates/' . $this->template . '/html/js/jquery.transition.js'?>"></script>
        <script type="text/javascript" src="http://cdn.dev.skype.com/uri/skype-uri.js"></script>
        <script type="text/javascript">
            $(function() {
                $("#banner").preloader();
                $("#content").preloader();
            });
        </script>
        <script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/html/js/common.js'?>" type="text/javascript" ></script>
        <script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/html/js/jquery.backgroundpos.js'?>" type="text/javascript" ></script>
        <script src="<?php echo $this->baseurl . '/templates/' . $this->template . '/html/js/jquery.fractionslider.js'?>" type="text/javascript" charset="utf-8"></script>
        <jdoc:include type="head" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div class="header">
            <div class="logo"><a href="index.php" id="logo"><img src="images/viseed_logo_03.png" alt="Webhitek" border="0" /></a></div>

            <div class="menu">
                <jdoc:include type="modules" name="menu" />	
                <br class="clear" />
            </div>

            <div class="language">
                <jdoc:include type="modules" name="language" />	       
            </div>

            <div class="social">
                <ul id="social">
                    <li><a href=""><img src="images/t2_social_05.png" width="49" height="94" /></a></li><li><a href=""><img src="images/t2_social_07.png" width="49" height="94" /></a></li><li><a href=""><img src="images/t2_social_09.png" width="49" height="94" /></a></li>
                </ul>
            </div>
            <br class="clear" />
        </div>
        <?php
        if ($isHome) {
            echo $home->render($this);
        } else {
            ?>
            <jdoc:include type="message" />
            <jdoc:include type="component" />
            <?php
        }
        ?>
        <div id="submenu">
            <jdoc:include type="modules" name="footer_menu" />
        </div>

        <div class="touch">
            <div class="touch_title"><?php echo JText::_('GET_IN_TOUCH');?></div>
            <div class="touch_desc"><?php echo JText::_('TEL');?>: (+848) 908 244 868 - (+848) 903 010 795 - (+848)908 037 322 / Email: <a href="mailto:info@viseed.com">info@viseed.com</a></div>
            <div class="chat_icon">   
                <a onclick="Skype.tryAnalyzeSkypeUri('chat', '0');" href="skype:pro_wire07?chat">
                    <img role="Button" src="images/skype_icon.png" width="46" height="46" border="0" align="absmiddle" /><br/><?php echo JText::_('SPBUSINEES');?></a>
                <a onclick="Skype.tryAnalyzeSkypeUri('chat', '0');" href="skype:thang848?chat">
                    <img role="Button" src="images/skype_icon.png" width="46" height="46" border="0" align="absmiddle" /><br/><?php echo JText::_('SPDESIGN');?></a>
                <a onclick="Skype.tryAnalyzeSkypeUri('chat', '0');" href="skype:quang4it?chat">
                    <img role="Button" src="images/skype_icon.png" width="46" height="46" border="0" align="absmiddle" /><br/><?php echo JText::_('SPTECH');?></a>
            </div>
            <div class="footer">Copyright by VISEED Co.,LTD. All Rights Reserverd</div>
        </div>
    </body>
</html>